
package com.jims.master.modules.doctor.dao;

import com.jims.master.common.persistence.CrudDao;
import com.jims.master.common.persistence.annotation.MyBatisDao;
import com.jims.master.common.web.impl.BaseDto;
import com.jims.master.modules.doctor.entity.ClinicMaster;
import com.jims.master.modules.doctor.entity.ClinicOrders;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 门诊医嘱DAO接口
 * @author CTQ
 * @version 2017-03-13
 */
@MyBatisDao
public interface ClinicOrdersDao extends CrudDao<ClinicOrders> {

    /**
     * 查询门诊收费主记录
     * @param clinicOrders
     * @return
     * @author 赵宁
     */
    public List<ClinicOrders> findClinicOrders(ClinicOrders clinicOrders);

    public int refundIng(ClinicOrders clinicOrders);
    /**
     * 门诊收费--根据执行科室过滤Order
     * @param orders
     * @return
     * @author 赵宁
     */
    public List<BaseDto> filterOrders(@Param("orders")String [] orders);

    /**
     * chenxy
     * @param list
     * @return
     */
    public  List<BaseDto> getInfo(@Param("ids") List<String> list);

    /**
     * 根据Id确定项目类别
     * @param ordersIds
     * @return
     */
    public  List<String> findItemClass(@Param("ids") List<String> ordersIds);

    /**
     * 查找clinicmaster信息
     * @param ordersId
     * @return
     */
    public ClinicMaster findClinicMaster(@Param("ordersId")  String ordersId);

    /**
     * 根据结算号查询收费主记录
     * @param rcptNo
     * @return ClinicOrders
     * @author 赵宁
     */
    public ClinicOrders getOrdersByRcpt(@Param("rcptNo")String rcptNo);
}